package net.trustie.dao;

import org.apache.ibatis.annotations.Insert;

import net.trustie.model.freecode_Model;


public interface FreeCode_Dao {
	
//		
//	@Insert("insert into freecode_projects_new"
//			+"(`url`,`extractTime`,`tags`,`license`,`operateSystem`,`implementation`,`projectTitle`,"
//			+ "`description`,`author`,`authorUrl`,`registered_time`,`download_num`,`homepage`)"
//			
//			
//	    	+" values (#{projectUrl},#{extractTime},#{tag},#{license},#{operateSystem},#{implementation},"
//        	+ "#{projectTitle},#{projectDesc},#{author},#{authorUrl},#{postDate},"
//        	+ "#{projectDownloads},#{homepage})") 

	
	@Insert("insert into freecode_project"
			+"(`created_time`,`source`,`url_md5`,`url`,`extracted_time`,`tags`,`license`,`platform`,`language`,`name`,"
			+ "`description`,`homepage`)"
			
			
	    	+" values (#{postDate},#{source},#{url_md5},#{projectUrl},#{extractTime},#{tag},#{license},#{operateSystem},#{implementation},"
        	+ "#{projectTitle},#{projectDesc},"
        	+ "#{homepage})") 
	
	public int add(freecode_Model fmodel);
}
